<?php use_helper('I18N') ?>
<div class="createAccountTitle"><?php echo __('Register - Yourself', null, 'sf_guard') ?></div>

<?php
    $form = new sfGuardRegisterForm();
?>

<div class="createAccount">
<form action="<?php echo url_for('@sf_guard_register') ?>" method="post">
    
  <table>


    

    
    <tfoot>
      <tr>
        <td colspan="4">
          <ul class="error_list">
            <?php foreach ($form->getGlobalErrors() as $name => $error): ?>
              <li><?php echo $name.': '.$error ?></li>
            <?php endforeach; ?>
          </ul>
        </td>
      </tr>
      <tr>
        <td colspan="2">
          <input type="submit" name="register" value="<?php echo __('Register', null, 'sf_guard') ?>" />
          <?php echo $form->renderHiddenFields(); ?>
        </td>
      </tr>
    </tfoot>
    <tbody>
        <?php echo $form['username']->renderRow(array(), 'Username: '); ?>
        <?php echo $form['password']->renderRow(array(), 'Password: '); ?>
        <?php echo $form['password_again']->renderRow(array(), 'Password again: '); ?>
        <?php echo $form['email_address']->renderRow(array(), 'Email: '); ?>
        <?php echo $form['Player']['firstname']->renderRow(array(), 'Firstname: '); ?>
        <?php echo $form['Player']['lastname']->renderRow(array(), 'Lastname: '); ?>
        <?php echo $form['Player']['sex']->renderRow(array(), 'I am: '); ?>
        <?php echo $form['Player']['nationality']->renderRow(array('size' => '1'), 'Country: '); ?>
        <?php echo $form['Player']['age']->renderRow(array('size' => '1'), 'Age: '); ?>
    </tbody>
  </table>
  
</form>
</div>
